
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Anonym.Data.Entities;

namespace Anonym.Models.Objects
{
    /// <summary>
    /// 用户 扩展
    /// </summary>
    public class Cms_UserInfo : Cms_User
    {
        /// <summary>
        /// 用户组名称
        /// </summary>
        public string GroupName { get; set; } = string.Empty;

        public string Key { get; set; }

        /// <summary>
        ///  当前页码
        /// </summary>
        public int PageIndex { get; set; } = 1;
        /// <summary>
        /// 单页条数
        /// </summary>
        public int PageSize { get; set; } = 10;
        /// <summary>
        /// 总条数
        /// </summary>
        public long RecordCount { get; set; } = 0;

        public string CreateUserName { get; set; } = "";
    }

    /// <summary>
    /// 后台登录后基础信息
    /// </summary>
    public class CmsBasicsInfo
    {
        /// <summary>
        /// 用户Id
        /// </summary>
        public long ID { get; set; } = 0;

        /// <summary>
        /// 登录名
        /// </summary>
        public string Name { get; set; } = string.Empty;

        /// <summary>
        /// 姓名
        /// </summary>
        public string RealName { get; set; } = string.Empty;

        /// <summary>
        /// 员工编号；格式规则：
        /// </summary>
        public string EmployeeId { get; set; } = string.Empty;

        /// <summary>
        /// 手机
        /// </summary>
        public string Phone { get; set; } = string.Empty;

        /// <summary>
        /// 性别
        /// </summary>
        public string Sex { get; set; } = string.Empty;

        /// <summary>
        /// 用户组id
        /// </summary>
        public long GroupId { get; set; } = 0;

        /// <summary>
        /// 用户地区code
        /// </summary>
        public string RegionCode { get; set; } = string.Empty;

        /// <summary>
        /// 用户状态；0：在职，1：离职
        /// </summary>
        public int State { get; set; } = 0;

        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; } = string.Empty;

        /// <summary>
        /// 是否超级管理员；0：否，1：是，2：特殊权限
        /// </summary>
        public int IsSuper { get; set; } = 0;

        /// <summary>
        /// 请求ip
        /// </summary>
        public string Ip { get; set; } = string.Empty;

        /// <summary>
        /// 公司id
        /// </summary>
        public long CompanyId { get; set; } = 0;

        /// <summary>
        /// request参数
        /// </summary>
        //public Dictionary<string, string> DicRequest { get; set; } = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
        public Dictionary<string, string> DicRequest { get; set; } = new Dictionary<string, string>();
    }
}

